import { defineComponent, ref } from "vue";

export default defineComponent({
	props: {
		tableData: Object, // 确保类型匹配
	},
	setup(props, context) {
		return () => (
			<>
				{props.tableData.handleBtns.map((item) => {
					return <el-button onClick={item.onClick} style="margin-right:10px" type={item.type || "primary"}>{item.text}</el-button>;
				})}
			</>
		);
	},
});
